#define _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"
int main()
{
	HP hp;
	HeapInit(&hp);
	HeapPush(&hp, 21);
	HeapPush(&hp, 11);
	HeapPush(&hp, 31);
	HeapPush(&hp, 51);
	HeapPush(&hp, 61);
	HeapPush(&hp, 41);
	HeapPush(&hp, 31);
	HeapPush(&hp, 91);

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}

	return 0;
}